<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>RegExpTree (Closure Compiler)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="RegExpTree (Closure Compiler)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/javascript/jscomp/regex/CaseCanonicalize.html" title="class in com.google.javascript.jscomp.regex"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/javascript/jscomp/regex/RegExpTree.html" target="_top">Frames</a></li>
<li><a href="RegExpTree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.google.javascript.jscomp.regex</div>
<h2 title="Class RegExpTree" class="title">Class RegExpTree</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>com.google.javascript.jscomp.regex.RegExpTree</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public abstract class <span class="strong">RegExpTree</span>
extends java.lang.Object</pre>
<div class="block">An AST for JavaScript regular expressions.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#RegExpTree()">RegExpTree</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#appendDebugInfo(java.lang.StringBuilder)">appendDebugInfo</a></strong>(java.lang.StringBuilder&nbsp;sb)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected abstract void</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#appendSourceCode(java.lang.StringBuilder)">appendSourceCode</a></strong>(java.lang.StringBuilder&nbsp;sb)</code>
<div class="block">Appends this regular expression source to the given buffer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract java.util.List&lt;? extends <a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&gt;</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#children()">children</a></strong>()</code>
<div class="block">The children of this node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#containsAnchor()">containsAnchor</a></strong>()</code>
<div class="block">True if the regular expression contains an anchor : <code>^</code> or <code>$</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#equals(java.lang.Object)">equals</a></strong>(java.lang.Object&nbsp;o)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#hasCapturingGroup()">hasCapturingGroup</a></strong>()</code>
<div class="block">True if the regular expression contains capturing groups.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#isCaseSensitive()">isCaseSensitive</a></strong>()</code>
<div class="block">True if the presence or absence of an <code>"i"</code> flag would change the
 meaning of this regular expression.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#matchesWholeInput(com.google.javascript.jscomp.regex.RegExpTree, java.lang.String)">matchesWholeInput</a></strong>(<a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&nbsp;t,
                 java.lang.String&nbsp;flags)</code>
<div class="block">True if, but not necessarily always when the, given regular expression
 must match the whole input or none of it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract int</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#numCapturingGroups()">numCapturingGroups</a></strong>()</code>
<div class="block">The number of capturing groups.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#parseRegExp(java.lang.String, java.lang.String)">parseRegExp</a></strong>(java.lang.String&nbsp;pattern,
           java.lang.String&nbsp;flags)</code>
<div class="block">Parses a regular expression to an AST.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>abstract <a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#simplify(java.lang.String)">simplify</a></strong>(java.lang.String&nbsp;flags)</code>
<div class="block">Returns a simpler regular expression that is semantically the same assuming
 the given flags.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#toDebugString()">toDebugString</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html#toString()">toString</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="RegExpTree()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RegExpTree</h4>
<pre>public&nbsp;RegExpTree()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="simplify(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>simplify</h4>
<pre>public abstract&nbsp;<a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&nbsp;simplify(java.lang.String&nbsp;flags)</pre>
<div class="block">Returns a simpler regular expression that is semantically the same assuming
 the given flags.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>flags</code> - Regular expression flags, e.g. <code>"igm"</code>.</dd></dl>
</li>
</ul>
<a name="isCaseSensitive()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCaseSensitive</h4>
<pre>public abstract&nbsp;boolean&nbsp;isCaseSensitive()</pre>
<div class="block">True if the presence or absence of an <code>"i"</code> flag would change the
 meaning of this regular expression.</div>
</li>
</ul>
<a name="containsAnchor()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>containsAnchor</h4>
<pre>public abstract&nbsp;boolean&nbsp;containsAnchor()</pre>
<div class="block">True if the regular expression contains an anchor : <code>^</code> or <code>$</code>.</div>
</li>
</ul>
<a name="hasCapturingGroup()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasCapturingGroup</h4>
<pre>public final&nbsp;boolean&nbsp;hasCapturingGroup()</pre>
<div class="block">True if the regular expression contains capturing groups.</div>
</li>
</ul>
<a name="numCapturingGroups()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>numCapturingGroups</h4>
<pre>public abstract&nbsp;int&nbsp;numCapturingGroups()</pre>
<div class="block">The number of capturing groups.</div>
</li>
</ul>
<a name="children()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>children</h4>
<pre>public abstract&nbsp;java.util.List&lt;? extends <a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&gt;&nbsp;children()</pre>
<div class="block">The children of this node.</div>
</li>
</ul>
<a name="appendSourceCode(java.lang.StringBuilder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendSourceCode</h4>
<pre>protected abstract&nbsp;void&nbsp;appendSourceCode(java.lang.StringBuilder&nbsp;sb)</pre>
<div class="block">Appends this regular expression source to the given buffer.</div>
</li>
</ul>
<a name="appendDebugInfo(java.lang.StringBuilder)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>appendDebugInfo</h4>
<pre>protected abstract&nbsp;void&nbsp;appendDebugInfo(java.lang.StringBuilder&nbsp;sb)</pre>
</li>
</ul>
<a name="toString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toString</h4>
<pre>public final&nbsp;java.lang.String&nbsp;toString()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>toString</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="toDebugString()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>toDebugString</h4>
<pre>public final&nbsp;java.lang.String&nbsp;toDebugString()</pre>
</li>
</ul>
<a name="equals(java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>equals</h4>
<pre>public abstract&nbsp;boolean&nbsp;equals(java.lang.Object&nbsp;o)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>equals</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="hashCode()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hashCode</h4>
<pre>public abstract&nbsp;int&nbsp;hashCode()</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code>hashCode</code>&nbsp;in class&nbsp;<code>java.lang.Object</code></dd>
</dl>
</li>
</ul>
<a name="parseRegExp(java.lang.String, java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>parseRegExp</h4>
<pre>public static&nbsp;<a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&nbsp;parseRegExp(java.lang.String&nbsp;pattern,
                     java.lang.String&nbsp;flags)</pre>
<div class="block">Parses a regular expression to an AST.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>pattern</code> - The <code>foo</code> From <code>/foo/i</code>.</dd><dd><code>flags</code> - The <code>i</code> From <code>/foo/i</code>.</dd></dl>
</li>
</ul>
<a name="matchesWholeInput(com.google.javascript.jscomp.regex.RegExpTree, java.lang.String)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>matchesWholeInput</h4>
<pre>public static&nbsp;boolean&nbsp;matchesWholeInput(<a href="../../../../../com/google/javascript/jscomp/regex/RegExpTree.html" title="class in com.google.javascript.jscomp.regex">RegExpTree</a>&nbsp;t,
                        java.lang.String&nbsp;flags)</pre>
<div class="block">True if, but not necessarily always when the, given regular expression
 must match the whole input or none of it.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/google/javascript/jscomp/regex/CaseCanonicalize.html" title="class in com.google.javascript.jscomp.regex"><span class="strong">Prev Class</span></a></li>
<li>Next Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/google/javascript/jscomp/regex/RegExpTree.html" target="_top">Frames</a></li>
<li><a href="RegExpTree.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
